import {Injectable} from "@nestjs/common"

import {ExtractJwt,Strategy} from "passport-jwt"
import {PassportStrategy} from "@nestjs/passport"



@Injectable()

export class jwtService extends PassportStrategy(Strategy) {
    constructor(){
        super({
            jwtFromRequest:ExtractJwt.fromAuthHeaderAsBearerToken(),
            ignoreExpiration:false,
            secretOrKey:"yaohf"
        })
    }


    async validate(payload:any){
        return payload
    }



}